<?php
error_reporting(0);
session_start();
include_once '../comm/config.php';
$id=$_SESSION["dduserid"];
$_SESSION["duoduouser"] = NULL;
$_SESSION["dduserid"] = NULL;
$_SESSION["dduserlevel"] = NULL;
setcookie("ddusername",NULL, time()-42000, '/',SURL);
setcookie("ddpassword",NULL, time()-42000, '/',SURL);
if(UC==1)
{
    include '../data/config.inc.php';
	include '../include/db_mysql.class.php';
	include '../uc_client/client.php';
	echo uc_user_synlogout($id);
}
$windconfig = get_phpwind_config();
if ($windconfig['open'] == 'on') {
    phpwind_quit('../index.php', $windconfig);
    exit;
}
echo "<script>window.location =\"../index.php\";</script>"; 
?>